﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Web;
using Fengsoft.FengCommerce.Resources;
namespace Fengsoft.AIBlog.Web.Code
{
    public static class SiteConfiguration
    {
        public static string Author
        {
            get
            {
                return ConfigurationManager.AppSettings["Author"];
            }
        }
        public static string Description
        {
            get
            {
                return ConfigurationManager.AppSettings["Description"];
            }
        }
        public static string MvcTheme
        {
            get
            {
                return CookieHelper.MvcTheme;
            }
        }
        public static string CombineKeywords(string[] keywords)
        {
            StringBuilder result=new StringBuilder(ConfigurationManager.AppSettings["Keywords"]);
            string keywordsText=string.Join(",",keywords);
            if (!string.IsNullOrEmpty(result.ToString()))
            {
                result.Append(",");
            }
            result.Append(keywordsText);
            return result.ToString();
        }
        public static string CombineTitle(string pageTitle)
        {
            // return string.Format("{0}: {1}",SiteResource.SiteTitle,pageTitle);
            return string.Format("Asian Idols: {0}",pageTitle);
        }
    }
}